<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class GoodsAttributesValue extends Model
{
    use SoftDeletes;
    protected $table = 'goods_attributes_value';
    protected $fillable=[ 'attribute_id','value', 'sort' ];

    public function belongsToAttributes()
    {
        return $this->belongsTo(GoodsAttributes::class,'attribute_id','id');
    }
}
